package com.hawthorn.dic.repository;

import com.hawthorn.dic.provider.SysDictSqlProvider;
import com.hawthorn.entity.dto.SysDictDTO;
import com.hawthorn.entity.dto.SysDivisionDTO;
import com.hawthorn.entity.po.SysDictPO;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo SysDict Mapper类</p>
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @created: 2021/11/11 8:33 PM
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
@Repository
public interface SysDictMapper extends DBMapper<SysDictPO>
{
  @SelectProvider(SysDictSqlProvider.class)
  List<SysDictDTO> findDict();

  @SelectProvider(SysDictSqlProvider.class)
  List<SysDivisionDTO> findDictDivision();
  
  @SelectProvider(SysDictSqlProvider.class)
  List<Map<String, Object>> findDictForTab(String sql);
}
